#ifndef __USART_H
#define	__USART_H

#include "stm32f10x.h"
#include "typedef.h"

#define U1DMA_TX_MAX 256
typedef void (*UsartCallback)(UINT8 data);

void UART_Init(void);
void UART1_DMASend(UINT8 *str,UINT8 len);
void UART_SetIRQCallback(UINT8 deviceNum, UsartCallback usartCallback);

#endif /* __USART_H */
